﻿#region 命名空间

using System.Collections.Generic;
using System;
using WinnerCMS.Data;
using WinnerCMS.Model;

#endregion

namespace WinnerCMS.BLL.PageFactory.HtmlFactory
{
    public class GetInfoForMakeHTML
    {
        private static readonly CoreDal MyDAL = new CoreDal();

        public GetInfoForMakeHTML()
        {
        } 

        public IList<Core> ReadTopContent(byte modelId)
        {
            return MyDAL.ReadContent(modelId);
        }

        /// <summary>
        /// 读取前N条内容
        /// </summary>
        /// <param name="modelId"></param>
        /// <param name="top"></param>
        /// <returns></returns>
        public IList<Core> ReadTopContent(byte modelId,int top)
        {
            return MyDAL.ReadContent( modelId,top);
        }

        public IList<Core> ReadContent(byte modelId,int minId, int maxId)
        {
            return MyDAL.ReadContent(modelId,minId, maxId);
        }

        public IList<Core> ReadContent(byte modelId,DateTime minDate, DateTime maxDate)
        {
            return MyDAL.ReadContent(modelId,minDate, maxDate);
        }
    }
}